PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / setClip Method / setClip(PDFPath,PDFFillMode) Method
that represents the new clip region.
Path fill mode.
In This Topic
    setClip(PDFPath,PDFFillMode) Method
    In This Topic
    Sets the clipping region of this graphics to the specified path.
    The actual clipping path is the intersection of the previous clipping path with this new clipping path. It is recommended to save the graphics state (see method) before setting a clipping path and restore the graphics state (see method) after the clipping path is no longer needed.
    Syntax
    public void setClip( 
       PDFPath path,
       PDFFillMode fillMode
    )

    Parameters

    path
    that represents the new clip region.
    fillMode
    Path fill mode.
    Exceptions
    ExceptionDescription
    when the clip path is null.
    See Also